//
//  PhotoFetching.h

//  OGL
//
//  Created by 洋 耿 on 15/4/8.
//  Copyright (c) 2015年 ZengYuan. All rights reserved.

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#define kDataKey		@"photos"

@protocol PhotoFetcherDelegate;

@interface PhotoFetching : NSObject {
	id<PhotoFetcherDelegate> __weak _delegate;
}

@property (nonatomic,strong) NSMutableArray* photoUrlListArray;
@property(nonatomic, weak)id<PhotoFetcherDelegate> delegate;
+(PhotoFetching*)sharedPhotoFetcher;

-(void)fetchphotosFromPhotoAlbum;

-(void)fetchingPhotoWithUrl:(NSURL*)url;

@end


@protocol PhotoFetcherDelegate<NSObject>
//根据url获取照片结束  通知代理
-(void)photoFetchingDidFinished:(UIImage*)image;
//读取照片结束  通知代理
- (void)alubumLoadFinished:(NSMutableArray *)aray;
@end
